﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Web.Mvc;

namespace ProjectBase.Core.Diagnostics
{
    [ContractClassFor(typeof(IMessagesHolder))]
    internal abstract class MessagesHolder : IMessagesHolder
    {
        public Messages Messages
        {
            get
            {
                Contract.Ensures(Contract.Result<Messages>().Is(), "IMessageHolder grants Messages collection to be instantiated.");
                return default(Messages);
            }
            set
            {
                Contract.Requires(value.Is(), "IMessageHolder Messages cannot be set to null");
                throw new NotImplementedException();
            }
        }
    }
}